<?php
namespace Home\Controller;

class TestimonialsController extends HomeController {

    public function index(){
      
        $map['cid']=3;
        $list = M('Article')->field('id,title,content')->where($map)->select();
        $this->assign('list',$list);
    	$this->display();
    }   
}